package cn.htu.edu.controller;


import cn.htu.edu.common.ResponseHelper;
import cn.htu.edu.common.ResponseModel;
import cn.htu.edu.entity.Sensitives;
import cn.htu.edu.mapper.SensitivesMapper;
import cn.htu.edu.service.ISensitivesService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dakai
 * @since 2023-12-28
 */
@RestController
@RequestMapping("/sensitive")
public class SensitivesController {

    @Resource
    private SensitivesMapper sensitivesMapper;

    @ApiOperation("查询")
    @GetMapping("/list")
    public ResponseModel select1() {
        List<Sensitives> sensitives = sensitivesMapper.selectSensitives();
        return ResponseHelper.buildResponseModel(sensitives);
    }
}
